POST api/otp/getCoeff
Извиква се от сайта на търговеца за получаване на коефициентите за изчисляване на месечна вноска, които да заложат на сайта си.
Request Information
URI Parameters
None.
Body Parameters
Параметри при извикване
CoefficientRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| user |
User. Уникална идентификация на ОТП |
string |
Required Max length: 20 |
| pass |
Pass. Актуална парола за ОТП |
string |
Required Max length: 20 |
| onlineProductCode |
КОП - Код на онлайн продукт |
string |
None. |
| installmentCount |
Срок за погасяване – в брой месеци |
integer |
Range: inclusive between 0 and 999 |
Request Formats
application/json, text/json
{
"user": "sample string 2",
"pass": "sample string 3",
"onlineProductCode": "sample string 1",
"installmentCount": 1
}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Връщани данни от услугата
CoefficientResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| errorCode |
Код на грешка: 0 или празно при липса на грешка, иначе код на грешка |
CoefficientErrorCodes |
None. |
| errorText |
Текст на грешка |
string |
None. |
| coeffList |
Списък от коефициенти: списък от 1 или повече обекта, в зависимост от това дали е подаден КОП и Срок. Ако не е подаден КОП се връщат данните за всички активни КОП на ОТП. Ако е подаден КОП или Срок пълният списък се филтрира по тях. |
Collection of Coefficient |
None. |
Response Formats
application/json, text/json
{
"errorCode": 100,
"errorText": "sample string 1",
"coeffList": [
{
"onlineProductCode": "sample string 1",
"installmentCount": 1,
"coeff": 1.0,
"interestPercent": 2.0
},
{
"onlineProductCode": "sample string 1",
"installmentCount": 1,
"coeff": 1.0,
"interestPercent": 2.0
}
]
}